package propertiesio;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        //void load (Reader reader)  将本地文件中的键值对数据读取到集合中
        Properties pro = new Properties();
        FileReader fr = new FileReader("abc.properties");
        pro.load(fr);
        fr.close();
        System.out.println(pro);
    }
}
